﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />
<link rel="stylesheet" href="../lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>消息提示</title>

</head>
<body class="pos-r">

<div style="margin-left:1px;">
	
	<div class="page-container">
		<div class="text-c"> 
			
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="r" id="zonggongshuju"> 共有消息：<strong>0</strong> 条</span> </div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort" id="dcmz">
				<thead>
					<tr class="text-c">
						
						<th width="70">事件对象</th>
						<th width="70">时间</th>
						<th width="70">处理</th>
						<th width="70">操作</th>
					</tr>
				</thead>
				<tbody>
					
				</tbody>
			</table>
		</div>
		
	</div>
</div>
<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="../lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="../lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script> 
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script> 

</body>
<script type="text/javascript" src="../MyJs/date_string.js"></script>
<script type="text/javascript">

window.onload=showInfo();
var num=0;
function showInfo() {
	
	
    $.getJSON('../scts.do',{"v":"getMessage"},function (data) {
    	$("#dcmz > tbody").empty();
    	//遍历数据
    	$(data).each(function (i,v) {
    		num++;
    		var content="<tr class='text-c va-m'>";
    		content += "<td>"+v.mess_eh+"</td>";
    		content += "<td>"+jsonDate_str(v.mess_date)+"</td>";
    		content += "<td>"+v.mess_obj+"</td>"; 
    		content += "<td><a onclick=\"modify('"+v.mess_id+"',this)\">不再提示</a></td>"; 
    		content +="</tr>";
    		
            $("#dcmz > tbody").append(content);
           });
    	$("#zonggongshuju").html(" 共有数据：<strong>"+num+"</strong> 条");
    });
}

function modify(id,obj){
	$(obj).parents("tr").remove();
	$("#zonggongshuju").html(" 共有数据：<strong>"+--num+"</strong> 条");
	
	//删除页面数据
	$.getJSON('../scts.do',{"v":"modify","id":id},function (data) {
    });
	
	
}



</script>
</html>